// 结构数组 与 函数
#include <iostream>
#include <string.h>

using namespace std;

struct Student {
    char name[40];
    char ID_Num[15];
    int dept;
    float gpa;
};

void GetInfo(Student[]);

int main() {
    Student MyStudents[100];
    GetInfo(MyStudents);
}

void GetInfo(Student s[]) {
    strcpy(s[0].name, "Melissa");
    strcpy(s[0].ID_Num, "123-45-6789");
    s[0].dept = 2;
    s[0].gpa = 3.6f;

    strcpy(s[1].name, "Sue");
    strcpy(s[1].ID_Num, "987-65-4321");
    s[1].dept = 1;
    s[1].gpa = 3.7f;
}
